<template>
  <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="id" label="权限编号" />
      <el-table-column prop="name" label="权限名称" />
      <el-table-column prop="parentId" label="上级权限编号" />
  </el-table>
</template>

<script lang="ts" setup>
import axiosInstance from '@/stores/Utils/axiosHelp'
import { ref, onMounted } from 'vue'

const tableData = ref([])

onMounted(() => {
  funshow()
})

const funshow = () => {
  axiosInstance.get("/api/Permission/PermissionList")
      .then(r => {
          console.log(r)
          if (r.isSuccess) {
              tableData.value = r.data
          }
      })
}

</script>../../stores/Utils/axiosHelp
